import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
const Permission: AppRouteRecordRaw = {
  path: '/permission',
  name: 'permission',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '权限',
    icon: 'icon-branch',
    requiresAuth: true,
    order: 9,
  },
  children: [
    {
      path: '/permission/roles',
      name: 'permissionRoles',
      component: () => import('@/views/permission/roles.vue'),
      meta: {
        locale: '角色列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/permission/user',
      name: 'permissionuser',
      component: () => import('@/views/permission/user.vue'),
      meta: {
        locale: '账号列表',
        requiresAuth: true,
        roles: ['*'],
      },
    },

    // {
    //   path: '/permission/menu', // The midline path complies with SEO specifications
    //   name: 'permissionMenu',
    //   component: () => import('@/views/permission/menu.vue'),
    //   meta: {
    //     locale: '菜单设置',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
  ],
}

export default Permission
